﻿using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.Http.Client;
using Volo.Abp.Modularity;

namespace Topthink.Ruitu.QuestionBank
{
    [DependsOn(
        typeof(QuestionBankApplicationContractsModule),
        typeof(AbpHttpClientModule))]
    public class QuestionBankHttpApiClientModule : AbpModule
    {
        public const string RemoteServiceName = "QuestionBank";

        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            context.Services.AddHttpClientProxies(
                typeof(QuestionBankApplicationContractsModule).Assembly,
                RemoteServiceName
            );
        }
    }
}
